import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

// 对外暴露 Store 实例
import attraction from './attraction';
import news from './news';
import user from './user'
import getters from './getters';

export default new Vuex.Store({
    // vuex 模块化开发
    modules :{
        attraction,
        news,
        user
    },
    getters
}) 